package  
{
	import flash.media.Sound;
	import flash.media.SoundTransform;
	/**
	 * ...
	 * @author kizzo
	 */
	public class SoundLib 
	{
		
		[Embed(source="../snd/hit1.mp3")]
		public static var CubeMove_1:Class;
		
		[Embed(source="../snd/hit2.mp3")]
		public static var CubeMove_2:Class;
		
		[Embed(source="../snd/hit3.mp3")]
		public static var CubeMove_3:Class;
		
		[Embed(source="../snd/hit4.mp3")]
		public static var CubeMove_4:Class;				
		
		[Embed(source="../snd/fall.mp3")]
		public static var Fall:Class;		
		
		[Embed(source="../snd/teleport.mp3")]
		public static var Teleport:Class;			
		
		[Embed(source = "../snd/song.mp3")]
		public static var Song:Class;
		
				
		public static var FALL:Sound;
		public static var TELEPORT:Sound;
		public static var HIT_SOUNDS:Vector.<Sound> = new <Sound>[new CubeMove_1(),new CubeMove_2(),new CubeMove_3(),new CubeMove_4()];
		public static var BG_SONG:Sound;
				
		
		public function SoundLib() 
		{
			
		}

		
		public static function init():void
		{
			//CUBE_MOVE = new CubeMove();
			FALL = new Fall();
			TELEPORT = new Teleport();
			BG_SONG = new Song();
			
			//var snd_transform:SoundTransform = new SoundTransform(0.2);
			//BG_SONG.play(0, 0, snd_transform);			
			
		}
		
		
		public static function get_random_hit():Sound
		{
			return HIT_SOUNDS[Math.floor(Math.random() * 4)];
		}
		

		
		
	}

}